package com.baizhi.controller;

import com.baizhi.entity.TreeData;
import com.baizhi.service.TreeDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("tree")
public class TreeDataController {
    @Autowired
    private TreeDataService treeDataService;
    //获取页面上tree控件的数据
    @RequestMapping("selectAll")
    public List<TreeData> selectAll(){
        return treeDataService.selectAll();
    }
}
